home *** CD-ROM | disk | FTP | other *** search
- tell application "iView mediaPro"
-
- tell window 1
-
- (* methods for accessing media objects *)
-
- -- get the name of object 1
- -- get the name of every object
- -- get the index of every object whose name contains "clio"
-
-
- (* file related properties *)
-
- -- get the name of object 1
- -- set the name of object 1 to "myFile 0001"
- -- get the path of object 2
- -- set the path of object 2 to "Media:myFile 0002" -- will also reset broken links
- -- get the rotation of object 1
- -- set the rotation of object 1 to full180
-
-
- (* get/set properties *)
-
- -- get the caption of object 1
- -- get the keywords of object 1
- -- get item 1 of (the keywords of object 1 as list)
-
- -- get the URL of object 1
- -- get the keywords of the annotations of object 1
- -- set the keywords of object 1 to {"giant", "sandworms"} -- ???? commit, update
- -- set the state of object 1 to "North"
- -- get the annotations of object 1 -- get the whole record
- -- get the photo info of object 1
- -- get the model of object 1
- -- get the flash mode of object 1
-
-
- (* updating full annotation records - faster *)
-
- -- set myRecord to the annotations of object 1
- -- set the caption of myRecord to "some text"
- -- set the categories of myRecord to {"champion", "los amigos", "patty patty"}
- -- set the city of myRecord to "New York"
- -- set the country of myRecord to "USA"
- -- set the annotations of object 1 to myRecord
-
-
- (* function samples *)
-
- -- count objects
- -- count (objects whose name does not contain "DC")
- -- exists (objects whose name contains "clio")
- -- data size of the URL of object 1
-
-
- (* command samples *)
-
- -- delete object 1 with trashing
- -- delete object 1 -- (default = without trashing)
- -- delete (every object whose name starts with "indie") with trashing
- -- select object 1
- -- select (every object whose name contains "clio")
-
- -- move object 1 to the end
- -- move (every object whose name contains "clio") to the beginning
- -- move object 3 to before object 7
-
- -- move object 1 to after object 2 of window 2
- -- move object 3 to beginning of window 2
- -- move object 1 to end of window 2
-
-
- (* export samples *)
-
- -- tell object 1
- -- export annotations with do resource fork and do data fork
- -- end tell
-
- end tell
-
- end tell